//
//  ProfilesViewController.m
//  insyte
//
//  Created by Dell on 6/20/15.
//  Copyright (c) 2015 Robert. All rights reserved.
//

#import "ProfilesViewController.h"
#import "Helpers.h"
#import "Constants.h"

@interface ProfilesViewController ()

@end

@implementation ProfilesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpNavigationBar];
    if (self.navigationItem != nil) {
        UIImage* logoImage = [UIImage imageNamed:NavigationBarLogo];
        self.navigationItem.titleView = [[UIImageView alloc] initWithImage:logoImage];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void) viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [Helpers showAnnouncementDialog:@"Login successful! Please reopen this app to test other login/register features."];
}

- (void)setUpNavigationBar{
    UIBarButtonItem *btnBack = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ic_back"] style:UIBarButtonItemStylePlain target:self action:@selector(OnBackClicked)];
    self.navigationItem.leftBarButtonItem = btnBack;
    self.navigationItem.titleView = nil;
}

- (void) OnBackClicked{
//    [self.navigationController popViewControllerAnimated:YES];
}
@end
